package com.gopay.common.util.xml.xmlutils.read;

import java.util.List;

import org.dom4j.Document;
import org.dom4j.DocumentException;

/**
 * ML配置文件定位接口
 * @author liujy
 *
 */
public interface XmlProFileReader {
	/**
	 * 将定位的formPath路径转成Document数组
	 * @param formPath 文件路径
	 * @return
	 * @throws DocumentException
	 */
	public Document[] read(List<String> formPath) throws Exception;

	/**
	 * 将多个XML文件合并为一个XML以Document返回
	 * @param documents
	 * @return
	 * @throws DocumentException
	 */
	public Document merge(Document[] documents) throws Exception;
	
	/**
     * 获取formPath路径转成Document
     * @param formPath 文件路径
     * @return
     * @throws DocumentException
     */
	public Document readParent(String formPath) throws Exception;
}
